﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections;

namespace MyPueue
{
    class PrintQueue
    {
        public void PrintPueue1(Queue a)
        {
            while (a.Count != 0)
            {
                Console.WriteLine(a.Dequeue() + "已购票");
            }
            Console.WriteLine("购票结束");
           
        }
        public void PrintPueue2(Queue a)
        {
            foreach (var item in a)
            {
                Console.WriteLine(item);
            }
        }
    }
}
